<?php include __DIR__ . "/../../php/db.php"; ?>

<!DOCTYPE html>
<head>
	<title>Educational Background</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet" type="text/css">
	<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css">
	<link href="css/bootstrap.min.resume.css" rel="stylesheet" type="text/css">
	<link href="css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">
	<link href="css/resumestyle.css" rel="stylesheet" type="text/css">	
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
	<?php

$login = $_SESSION['login'];

$userid = mysql_query("SELECT * FROM `flss`.`accounts` WHERE `user` = '$login'") or die(mysql_error());
while($rowshow = mysql_fetch_array($userid))
{
	$getid = $rowshow['account_id'];
}

if(isset($_POST['add']))
{
	header("Refresh:0");
	
}
if(isset($_POST['save']))
{
	$qual = $_POST['qual'];
	$school = $_POST['school'];
	$today = date('d');
	$gradyear = $_POST['yeargrad'].'-'.$_POST['monthgrad'].'-'.$today;
	$loc = $_POST['loc'];
	$fos = $_POST['fos'];
	$major = $_POST['major'];
	
	mysql_query("INSERT INTO `a_educ`(`applicant_id`, `educ_level`, `graddate`, `school`, `unilocation`, `fieldofstudy`, `major`) 
	VALUES ('$getid','$qual','$gradyear','$school','$loc','$fos','$major')");
	
	}
?> 
</head>
<body class="templatemo-bg-gray">
	<div class="container" id="myform" style="overflow-x:hidden;">
		<div class="col-md-12">	
			<h1 class="text-center margin-bottom-15">Educational Background</h1>		
			<form class="form-horizontal templatemo-contact-form-2 templatemo-container"  method="post">
				<div class="row">
					<div class="col-md-6" style="width: 365px;">
						<div class="col-md-12 form-group">				         				         
					         <div class="templatemo-inline-group">
					         	<div class="col-sm-12 templatemo-select-container">
								  <td><select name="qual" id="text4" style="width: 643px; height: 32px; padding-left:20px;">
									  <option selected disabled>Qualification</option>
									  <option value="High School Diploma">High School Diploma</option>
									  <option value="Vocational Diploma">Vocational Diploma</option>
									  <option value="College Degree">College Degree</option>
									  <option value="Masters Degree">Masters Degree</option>
									  <option value="Doctorate Degree">Doctorate Degree</option>
									  <option value="Professional License">Professional License</option>
									  </select>
					         	</div>
							</div>
				    	</div>
				      </div>
				     </div>
              	<div class="row">
					<div class="col-md-6">
						<div class="form-group">				          		          	
				           	<div class="col-sm-12">
				            	<div class="templatemo-input-icon-container">
				            		<input type="text" name="school" class="form-control" id="name" placeholder="School / University" style="width: 643px;">
				            	</div>		            		            		            
				          	</div>              
				        </div>
				      </div>
				  </div>
				   <div class="row">
					<div class="col-md-6" style="width: 365px;">
						<div class="col-md-12 form-group">				         				         
					         <div class="templatemo-inline-group">
					         	<div class="col-sm-12 templatemo-select-container" style="width:350px;">
					         		<label class="control-label">Graduation Date</label> &nbsp; &nbsp; &nbsp; &nbsp; 
									  <select name="monthgrad" id="text16" style="height: 32px;width: 80px;">
									  <option selected="" disabled="">Month</option>
									   <option value="01">January</option>
									   <option value="02">February</option>
									   <option value="03">March</option>
									   <option value="04">April</option>
									   <option value="05">May</option>
									   <option value="06">June</option>
									   <option value="07">July</option>
									   <option value="08">August</option>
									   <option value="09">September</option>
									   <option value="10">October</option>
									   <option value="11">November</option>
									   <option value="12">December</option>
									  </select>
									  <input type="text" placeholder="Year" name="yeargrad" id="text17" style="height: 32px; width: 120px;">
									  
								</div>
							</div>
				    	</div>
				      </div>
					<div class="col-md-6">
						<div class="col-md-12 form-group">				         				         
					         <div class="templatemo-inline-group">
					         	<div class="col-sm-12 templatemo-select-container">
								<input type="text"  placeholder="Graduation Location" name="loc" id="text14" style="width: 352px; height: 32px; padding-left:20px">
										
					         	</div>
							</div>
				    	</div>
				    </div>
				</div>
				<div class="row">
					<div class="col-md-6" style="width: 370px;">
						<div class="col-md-12 form-group">				         				         
					         <div class="templatemo-inline-group">
					         	<div class="col-sm-12 templatemo-select-container">
					         		<select name="fos" id="text6" style="width: 352px; height: 32px;">
									  <option selected disabled>Field of Study</option>
										<option value="Advertising/Media">Advertising/Media</option>
										<option value="Airline Operation/Airport Management">Airline Operation/Airport Management</option>
										<option value="Architecture">Architecture</option>
										<option value="Art/Design/Creative Multimedia">Art/Design/Creative Multimedia</option>
										<option value="Biology">Biology</option>
										<option value="BioTechnology">BioTechnology</option>
										<option value="Business Studies/Administration/Management">Business Studies/Administration/Management</option>
										<option value="Chemistry">Chemistry</option>
										<option value="Commerce">Commerce</option>
										<option value="Computer Science/Information Technology">Computer Science/Information Technology</option>
										<option value="Dentistry">Dentistry</option>
										<option value="Economics">Economics</option>
										<option value="Journalism">Journalism</option>
										<option value="Education/Teaching/Training">Education/Teaching/Training</option>
										<option value="Engineering(Aviation/Aeronautics/Astronautics)">Engineering(Aviation/Aeronautics/Astronautics) </option>
										<option value="Engineering(Bioengineering/Biomedical)">Engineering(Bioengineering/Biomedical) </option>
										<option value="Engineering(Chemical)">Engineering(Chemical) </option>
										<option value="Engineering(Civil)">Engineering(Civil) </option>
										<option value="Engineering(Computer/Telecommunication)">Engineering(Computer/Telecommunication) </option>
										<option value="Engineering(Electrical/Electronic)">Engineering(Electrical/Electronic) </option>
										<option value="Engineering(Environmental/Health/Safety)">Engineering(Environmental/Health/Safety) </option>
										<option value="Engineering(Industrial)">Engineering(Industrial) </option>
										<option value="Engineering(Marine)">Engineering(Marine) </option>
										<option value="Engineering(Material Science)">Engineering(Material Science) </option>
										<option value="Engineering(Mechanical)">Engineering(Mechanical) </option>
										<option value="Engineering(Mecatronics/Electromechanical)">Engineering(Mecatronics/Electromechanical) </option>
										<option value="Engineering(Metal Fabrication/Tool & Die/Welding)">Engineering(Metal Fabrication/Tool & Die/Welding) </option>
										<option value="Engineering(Mining/Mineral)">Engineering(Mining/Mineral) </option>
										<option value="Engineering(Others)">Engineering(Others) </option>
										<option value="Engineering(Petroleum/Oil/Gas)">Engineering(Petroleum/Oil/Gas) </option>
										<option value="Finance/Accountancy/Banking">Finance/Accountancy/Banking</option>
										<option value="Food/Beverage Services Management">Food/Beverage Services Management</option>
										<option value="Food Technology/Nutrition/Dietetics">Food Technology/Nutrition/Dietetics</option>
										<option value="Geographical Science">Geographical Science</option>
										<option value="Geography/Geophysics">Geography/Geophysics</option>
										<option value="History">History</option>
										<option value="Hospitality/Tourism/Hotel Management">Hospitality/Tourism/Hotel Management</option>
										<option value="Human Resource Management">Human Resource Management</option>
										<option value="Humanities/Liberal Arts">Humanities/Liberal Arts</option>
										<option value="Logistic/Transportation">Logistic/Transportation</option>
										<option value="Law">Law</option>
										<option value="Library Management">Library Management</option>
										<option value="Linguistics/Languages">Linguistics/Languages</option>
										<option value="Mass Communications">Mass Communications</option>
										<option value="Mathematics">Mathematics</option>
										<option value="Medical Science">Medical Science</option>
										<option value="Medicine">Medicine</option>
										<option value="Maritime Studies">Maritime Studies</option>
										<option value="Marketing">Marketing</option>
										<option value="Music/Performing Arts Studies">Music/Performing Arts Studies</option>
										<option value="Nursing">Nursing</option>
										<option value="Optometry">Optometry</option>
										<option value="Personal Services">Personal Services</option>
										<option value="Pharmacy/Pharmacology">Pharmacy/Pharmacology</option>
										<option value="Philosophy">Philosophy</option>
										<option value="Physical Therapy/Physiotherapy">Physical Therapy/Physiotherapy</option>
										<option value="Physics">Physics</option>
										<option value="Political Science">Political Science</option>
										<option value="Property Development/Real Estate Management">Property Development/Real Estate Management</option>
										<option value="Protective Services and Management">Protective Services and Management</option>
										<option value="Psychology">Psychology</option>
										<option value="Quantity Survey">Quantity Survey</option>
										<option value="Science and Technology">Science and Technology</option>
										<option value="Secretarial">Secretarial</option>
										<option value="Social Science/Sociology">Social Science/Sociology</option>
										<option value="Sports Science & Management">Sports Science & Management</option>
										<option value="Textile/Fashion Design">Textile/Fashion Design</option>
										<option value="Urban Studies/Town Planning">Urban Studies/Town Planning</option>
										<option value="Veterinary">Veterinary</option>
									  </select>
					         	</div>
							</div>
				    	</div>
				      </div>
				     <div class="col-md-6" style="width:365px;">
						<div class="form-group">				          		          	
				           	<div class="col-sm-12">
				            	<div class="templatemo-input-icon-container">
				            		<input type="text" name="major" class="form-control" id="name" placeholder="Major" style="width: 350px;">
				            	</div>		            		            		            
				          	</div>              
				        </div>
				      </div>
                     </div>
                 <div class="form-group">
		          <div class="col-md-12">
		            <input type="submit" name="save" value="SAVE" class="btn btn-warning pull-right">		            
		          <input type="button" name="add" id="add" value="ADD QUALIFICATION" class="btn btn-warning pull-right" style="margin-right:10px;">		            
			</div>
		        </div>		    	
		      </form>	
 
              
		</div>
	</div>
    
  
</body>
</html>